
#ifndef		__SPACEOBJECT_H
#define		__SPACEOBJECT_H

#include	"Surface.h"
#include	"FPS.h"

class Object {

	protected:
		SDL_Surface* objectSurface;
		bool visible;
		float x, y;
		float speedX, speedY;

	public:
		Object();

		bool init(char* imageFile);
		virtual void loop();
		virtual void render(SDL_Surface*);
		virtual void cleanup();

		void setVisible(bool);

		void setSpeedX(float);
		void setSpeedY(float);

		void setPos(float, float);
		void setX(float);
		void setY(float);

		float getX(){ return x; }
		float getY(){ return y; }

};

#endif
